<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-pre v-cloak v-once</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <script type="text/javascript" src="../assets/js/vue.js"></script>
    <style>
    [v-cloak]{
        display:none;
    }
    </style>
</head>
<body>
    <h1>v-pre v-cloak v-once实例</h1>
    <hr>
    <div id="app">
        <div v-pre>{{message}}</div><!-- 原样输出，并不渲染 -->
        <div v-cloak>DOM渲染完成后，才显示！{{message}}</div>
        <div v-once>只在第一次渲染，之后不再改变{{message}}</div>
        <div><input type="text" v-model="message"></div>
        <div>{{message}}</div>
    </div>
    <script type="text/javascript">
        var app=new Vue({
            el:'#app',
            data:{
                message:'hello world1111!'
            }
        }) 
    </script>
</body>
</html>